home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 52
/
Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso
/
Aminet
/
docs
/
mags
/
Aakt1102GUIDE.lha
/
AMIGAaktuell
/
notizconnect.php
< prev
next >
Wrap
Text File
|
2002-09-21
|
703b
|
30 lines
<!-- diese Datei außerhalb des Webspaces ablegen -->
<?php
/* Verbindung zur Datenbank herstellen */
function connect()
{
$mysqlhost = "localhost"; /* mySQL Server */
$mysqluser = "root"; /* User */
$mysqlpasswd = ""; /* Password */
$mysqldatabase = "notizbuch"; /* Datenbankname */
$connID = @mysql_pconnect($mysqlhost, $mysqluser, $mysqlpasswd);
if($connID)
{
mysql_select_db($mysqldatabase); /* Datenbank connectieren */
return( $connID );
}
else
{
echo "<BR><font color='red'>Keine Verbindung zur Datenbank möglich !</font><BR>\n";
echo "Fehlerursache: " . mysql_error() . "<BR>\n";
exit(); /* Skript abbrechen */
}
}
?>